﻿using System;
using System.Collections.Generic;
using Downloader.Framework.Core;
using SharpArch.Domain.DomainModel;

namespace Downloader.Domain
{
    /// <summary>
    /// 分类信息
    /// </summary>
    public class Category : EntityBase
    {
        public Category()
        {
            this.CreateTime = DateTime.Now;
            this.Subs=new List<Category>();
        }

        /// <summary>
        /// 父级分类
        /// </summary>
        public virtual Category Parent { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public virtual string Name { get; set; }
        /// <summary>
        /// 分类介绍
        /// </summary>
        public virtual string Introduction { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public virtual int Sequence { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
      
        /// <summary>
        /// 子类别
        /// </summary>
        public virtual IList<Category> Subs { get; set; }

    }
    
   
   
   

}